package com.accloud.service;

import java.io.File;

public class ACFileInfo {
    protected ACACL acl;
    protected String bucket;
    protected byte[] data;
    protected File file;
    protected String filename;
    protected boolean isPublic;

    public ACFileInfo(String bucket2, String filename2) {
        this(false, bucket2, filename2);
    }

    public ACFileInfo(boolean isPublic2, String bucket2, String filename2) {
        this.isPublic = isPublic2;
        this.bucket = bucket2;
        this.filename = filename2;
    }

    public boolean isPublic() {
        return this.isPublic;
    }

    public void setIsPublic(boolean isPublic2) {
        this.isPublic = isPublic2;
    }

    public String getBucket() {
        return this.bucket;
    }

    public String getFilename() {
        return this.filename;
    }

    public void setData(byte[] data2) {
        this.data = data2;
    }

    public void setFile(String filePath) {
        this.file = new File(filePath);
    }

    public void setFile(File file2) {
        this.file = file2;
    }

    public byte[] getData() {
        return this.data;
    }

    public File getFile() {
        return this.file;
    }

    public void setACL(ACACL acl2) {
        this.acl = acl2;
    }

    public ACACL getACL() {
        if (this.acl == null) {
            this.acl = new ACACL();
        }
        return this.acl;
    }
}
